package com.dayu.finecomm.protocol.pojo;

public class TSensor {

	public String protocol;

	public String sn;

	/**
	 * 通道
	 */
	public String channel;

	/**
	 * 值
	 */
	public Object val;

	/**
	 * 时间
	 */
	public Long timestamp;

	public TSensor() {
	}

	public TSensor(String channel, Object val) {
		this(null, null, channel, val, null);
	}

	public TSensor(String channel, Object val, Long timestamp) {

		this(null, null, channel, val, timestamp);
	}

	public TSensor(String sn, String channel, Object val, Long timestamp) {
		this(null, sn, channel, val, timestamp);
	}

	public TSensor(String protocol, String sn, String channel, Object val,
			Long timestamp) {

		this.protocol = protocol;
		this.sn = sn;
		this.channel = channel;
		this.val = val;
		this.timestamp = timestamp;
	}
}
